///////////////////////////////////////
//    Autor: Mato Kormuth              //
//    (C) Mato Programs 2011        //
//////////////////////////////////////
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace RssReader
{
    [Serializable]
    public partial class RssReaderItem : UserControl
    {
        string posttitle;
        string posttext;
        string posturl;

        public string PostText
        {
            get
            {
                return posttext;
            }
            set
            {
                posttext = value;
            }
        }

        public string PostTitle
        {
            get
            {
                return posttitle;
            }
            set
            {
                posttitle = value;
            }
        }

        public string PostUrl
        {
            get
            {
                return posturl;
            }
            set
            {
                posturl = value;
            }
        }

        public RssReaderItem(string Post_Title, string Post_Text, string Post_Url)
        {
            InitializeComponent();
            post_title.Text = Post_Title;
            post_text.Text = Post_Text.Substring(0, 80);

            PostText = Post_Text;
            PostTitle = Post_Title;
            PostUrl = Post_Url;
        }

        private void RssReaderItem_Load(object sender, EventArgs e)
        {

        }
    }
}
